﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ViewOnCore.Helper.WPF.CopyToDialog"
    xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF"
    xmlns:properties="clr-namespace:ViewOnCore.Properties"
    Height="400"
    Width="400">
  <wpf:ChildWindowDecorator x:Name="childWindowDecorator" IsResizable="True">

      <Grid>

        <Grid.RowDefinitions>
          <RowDefinition Height="10" />
          <RowDefinition Height="*" />
          <RowDefinition Height="30" />
          <RowDefinition Height="5" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Border Grid.Row="1" Background="{DynamicResource VOColor12}" CornerRadius="1">
          <Grid>
            <TreeView x:Name="treeView"/>
            <wpf:Spinner x:Name="spinner"/>
          </Grid>
        </Border>

        <Button x:Name="btnCancel" Style="{StaticResource Button.TransparentWithEffect}" Grid.Row="2" Width="80" HorizontalAlignment="Left" Margin="110,0,0,0" VerticalAlignment="Bottom" Click="btnCancel_Click">
          <TextBlock Text="{x:Static properties:Globalization.Cancel}" Margin="5,5,5,5"/>
        </Button>
        <Button x:Name="btnCopyTo" Style="{StaticResource Button.TransparentWithEffect}" Grid.Row="2" Width="80" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Bottom" Click="btnCopyTo_Click">
          <TextBlock Text="{x:Static properties:Globalization.CopyToDialog_Copy}" Margin="5,5,5,5"/>
        </Button>

      </Grid>

  </wpf:ChildWindowDecorator>
</UserControl>
